<?php namespace Admin\Controller;
use Hdphp\Controller\Controller;
class TagController extends CommonController{
	private $model;
	public function __auto(){
		$this->model = new \Admin\Model\Tag;
	}
	
	public function index(){
	    View::make();
	}
	//添加标签
	public function add(){
		if(IS_POST){
		  	if($this->model->store()){
		  		View::success('添加成功',U('index'));
		  	}
			View::error($this->model->getError());
		}
	    View::make();
	}
	public function edit(){
	    View::make();
	}
	public function del(){
	    View::make();
	}
}



 ?>